nvapi_src = files([
  'dxvk/dxvk_interfaces.cpp',
  'vkd3d-proton/vkd3d-proton_interfaces.cpp',
  'util/util_string.cpp',
  'util/util_env.cpp',
  'util/util_log.cpp',
  'sysinfo/vulkan.cpp',
  'sysinfo/nvml.cpp',
  'sysinfo/nvapi_output.cpp',
  'sysinfo/nvapi_adapter.cpp',
  'sysinfo/nvapi_adapter_registry.cpp',
  'sysinfo/resource_factory.cpp',
  'd3d11/nvapi_d3d11_device.cpp',
  'd3d12/nvapi_d3d12_device.cpp',
  'nvapi_interface.cpp',
])

nvapi_dll = shared_library('nvapi'+target_suffix, [ nvapi_src, dxvk_nvapi_version ],
  name_prefix         : '',
  dependencies        : [ lib_dxgi ],
  include_directories : [ vk_headers ],
  install             : true)
